package com.yk.framework.gui.ctrl;

import java.awt.GraphicsConfiguration;
import java.awt.HeadlessException;
import java.awt.Toolkit;

import javax.swing.JFrame;

import com.yk.framework.icons.IconReader;

@SuppressWarnings("serial")
public class YKFrame extends JFrame {

	public YKFrame() throws HeadlessException {
		super();
		init();
	}

	public YKFrame(GraphicsConfiguration paramGraphicsConfiguration) {
		super(paramGraphicsConfiguration);
		init();
	}

	public YKFrame(String paramString, GraphicsConfiguration paramGraphicsConfiguration) {
		super(paramString, paramGraphicsConfiguration);
		init();
	}

	public YKFrame(String paramString) throws HeadlessException {
		super(paramString);
		init();
	}

	private void init() {
		setIconImage(Toolkit.getDefaultToolkit().getImage(IconReader.class.getResource("yk_logo.png")));
	}

}
